/**
 *  Copyright (C) 2008-2013  Telosys project org. ( http://www.telosys.org/ )
 *
 *  Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 3.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *          http://www.gnu.org/licenses/lgpl.html
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.telosys.tools.repository.config;

/**
 * User interface information provider 
 * 
 * @author L.GUERIN
 * 
 */
public interface UserInterfaceInformationProvider
{

    /**
     * Returns the user interface LABEL for the given column 
     * @param databaseColumnName the name of the column in the database
     * @param databaseColumnType the native database type
     * @param jdbcTypeCode the JDBC type code
     * @return the label ( ie 'First name', 'Age', etc )
     */
    public String getAttributeLabel(String databaseColumnName, String databaseColumnType, int jdbcTypeCode);

    /**
     * Returns the user interface INPUT TYPE for the given column <br>
     * 
     * @param databaseColumnName
     * @param databaseColumnType
     * @param jdbcTypeCode
     * @return the input type ( ie for HTML 5 : 'text', 'checkbox', etc)
     */
    public String getAttributeInputType(String databaseColumnName, String databaseColumnType, int jdbcTypeCode );

}